const { defineConfig } = require("@vue/cli-service");
let config = {
  // publicPath: process.env.NODE_ENV === 'production' ? `/${name}/` : '/',
  publicPath: process.env.NODE_ENV === "production" ? "/boat-cockpit/" : "/",
  productionSourceMap: false,
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "深蓝守护者.驾驶舱";
      args[0].buildHash = new Date().getTime();
      return args;
    });
  },
  lintOnSave: false,
  parallel: true,
  transpileDependencies: true,
};
module.exports = defineConfig(config);
